/**
 * 最富有的客户资产总量
 *
 * @USER: Administrator
 * @DATE: 2024/9/30 下午7:46
 * @VERSION: 1.0.0
 */
public class LC1672 {
    public static void main(String[] args) {

    }

    public int maximumWealth(int[][] accounts) {
        int max = 0;
        for (int[] account : accounts) {
            int sum = 0;
            for (int i = 0; i < account.length; i++) {
                sum += account[i];
                if (sum > max) max = sum;
            }
        }
        return max;
    }

}
